package com.huadi.ssm.Service;

import com.huadi.ssm.dao.EvidenceMapper;
import com.huadi.ssm.po.Evidence;

import java.util.List;

public class EvidenceServiceImpl implements EvidenceService {

    private EvidenceMapper evidenceMapper;

    public void setEvidenceMapper(EvidenceMapper evidenceMapper) {
        this.evidenceMapper = evidenceMapper;
    }

    @Override
    public int addEvidence(String evidenceType,String submitId,String fireId,String evidenceDescribe) {
        return evidenceMapper.addEvidence(evidenceType,submitId,fireId,evidenceDescribe);
    }

    @Override
    public int deleteEvidenceById(String evidenceId) {
        return evidenceMapper.deleteEvidenceById(evidenceId);
    }

    @Override
    public int updateEvidenceve(Evidence evidence) {
        return evidenceMapper.updateEvidence(evidence);
    }

    @Override
    public Evidence findEvidenceByUserId(String evidenceId) {
        return evidenceMapper.findEvidenceByUserId(evidenceId);
    }

    @Override
    public List<Evidence> findAllEvidence() {
        return evidenceMapper.findAllEvidence();
    }

    @Override
    public List<Evidence> FireFindAllEvi(String submitId) {
        return evidenceMapper.FireFindAllEvi(submitId);
    }

    @Override
    public int FinishCheck( String evidenceId){
        return evidenceMapper.FinishCheck(evidenceId);
    }

    @Override
    public int Identify( String evidenceId, String evidenceIdentifyResult){return evidenceMapper.Identify(evidenceId,evidenceIdentifyResult);}
}